import request from '@/utils/request'

export const getMonthlyList = data => request.get('/parking/card/list', { params: data })
export const getCardRate = () => request.get('/parking/card/proportion')
export const getMonthlyCard = id => request.get(`/parking/card/detail/${ id }`)
export const getMonthlyCardList = id => request.get(`/parking/card/${ id }`)
export const delMonthlyCard = ids => request.delete(`/parking/card/${ ids }`)
export const addMonthlyCard = data => request.post('/parking/card', data)
export const renewMonthlyCard = data => request.post('/parking/card/recharge', data)
export const editMonthlyCard = data => request.put('/parking/card/edit', data)
